
<?php
 session_start();
 date_default_timezone_set('PRC');
 include_once '../inc/conn.php';
 require '../inc/checkdate.php';
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>任务管理</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src ="../js/select_date.js" type="text/javascript"></script>
</head>

<body>
<?php if(!empty($_GET['id'])){
    $tid=$_GET['id'];
	$getsql="select * from task where id=".$tid;
	$result = $oa->query($getsql);
	$row = mysql_fetch_array($result);
	$task_title = $row['task_title'];
	$start_time = $row['start_time'];
	$stop_time  = $row['stop_time'];
	$performer  = $row['performer'];
	$sender       = $row['sender'];
	$content    = $row['content'];
?>
<form name="fom" id="fom" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="62" background="../images/nav04.gif">
          
		   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		
		  <tr>
			<td width="679" align="left"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../images/ico07.gif" width="20" height="18" /><font size=2>当前是第<?php echo$_GET['id']; ?>条任务</font>	
			  </td>
		  </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr>
          <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
	         
              <tr>
                <td height="40" class="font42"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">

					                  <tr>
                    <td height="20" colspan="9" align="center" bgcolor="#EEEEEE"class="tablestyle_title"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 任务细列表 </td>
					
                    </tr>
                  <tr>
				    <td width="15%" height="20" align="right" bgcolor="#FFFFFF">任务标题:</td>
                    <td width="85%" align="left" bgcolor="#FFFFFF"><?php echo $task_title;  ?></td>
                    </tr>
					
					<tr>
				    <td height="20" align="right" bgcolor="#FFFFFF">任务发送人:</td>
                    <td bgcolor="#FFFFFF"><?php echo $sender; ?></td>
                    </tr>
                  <tr>
				   <td height="20" align="right" bgcolor="#FFFFFF">任务执行人:</td>
                    <td bgcolor="#FFFFFF"><?php echo $performer;?></td>
                    </tr>
					<tr>
				    <td align="right" bgcolor="#FFFFFF">计划开始日期:</td>
                    <td bgcolor="#FFFFFF"><?php echo date('Y-m-d',$start_time); ?></td>
                    </tr>
                  <tr>
				    <td align="right" bgcolor="#FFFFFF">计划完成日期:</td>
                    <td bgcolor="#FFFFFF"><?php echo date('Y-m-d',$stop_time); ?></td>
                    </tr>
					
				<tr>
				    <td align="right" bgcolor="#FFFFFF">优先级:</td>
                    <td bgcolor="#FFFFFF">
                    <?php
                    switch(intval($row['task_level'])){
                    	case 1:
                    	echo "暂不需要";
                         break;
                    	case 2:
                    	echo "一般";
                    	break;
                    	case 3:
                    	echo "需要";
                    	break;
                    	case 4:
                    	echo "急";
                    	break;
                    	case 5:
                    	echo "很急";
                    	break;
                    }
                    ?>
                    </td>
                    </tr>
					<tr>
				    <td align="right" bgcolor="#FFFFFF" height="80">任务说明:</td>
                    <td bgcolor="#FFFFFF"><?php echo $content; ?></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6"><img src="../images/spacer.gif" width="1" height="1" /></td>
          <td align="center"><input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></td>
          
        </tr>
        
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
  <td>
   
  </td>
  </tr>
</table>
</form>
<?php }?>
</body>
</html>
